
import axios from 'axios'
import { Notification, MessageBox, Message, Loading } from 'element-ui'
import { getToken } from '@/utils/auth'
const request = axios.create({
  // axios中请求配置有baseURL选项，表示请求URL公共部分
  baseURL: 'http://region.api.yunhesj.com',
  // 超时
  timeout: 10000
})


export function Map(level,adcode){
       return request({
         url:'/api/region/border?level='+level+'&adcode='+adcode,
         method:'get',
       })

}

// export function regionName(query) {
//   return request({
//     url: '/api/region/list',
//     method: 'get',
//     params: query
//   })
// }

export function regionName(adcode){
       return request({
         url:'/api/region/list?adcode='+adcode,
         method:'get',
       })

}



export default request
